import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.DefaultListModel;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
import javax.swing.JTextField;


public class NewClassEditPanel extends JPanel {

	
	//defining types
	//lables
	private JLabel classname = new JLabel("Class Name :");
	private JLabel variablename = new JLabel("Variable Name :");
	private JLabel variabletype = new JLabel("Variable Type :");
	
	//fields
	private JTextField classnamefield = new JTextField();
	private JTextField variablenamefield = new JTextField();
	
	//comboboxs
	private JComboBox variabletypeBox = new JComboBox();
	
	

	NewClassEditPanel(){
		//setup layout
		this.setLayout(new GridBagLayout());
		GridBagConstraints c = new GridBagConstraints();
		
		//basic setup
		this.setBackground(Color.white);
		
		
		
		
		//putting it all on the screen
		c.gridx = 0;
        c.gridy = 0;
        this.add(classname, c);
		
        c.gridx = 1;
        c.gridy = 0;
        this.add(classnamefield, c);
        classnamefield.setPreferredSize(new Dimension(100, 20));
        
        c.gridx = 0;
        c.gridy = 1;
        this.add(variablename, c);
        
        c.gridx = 1;
        c.gridy = 1;
        this.add(variablenamefield, c);
        variablenamefield.setPreferredSize(new Dimension(100, 20));
        
        c.gridx = 0;
        c.gridy = 2;
        this.add(variabletype, c);
        
        c.gridx = 1;
        c.gridy = 2;
        this.add(variabletypeBox, c);
        variabletypeBox.setPreferredSize(new Dimension(100, 20));
        
        
        
		
	}
	
	
	
	
}

//g.drawString("abc", 25, 25);
